# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: team/kde <bribbers@disroot.org>

# The group tag is just to easily find this APKBUILD by some scripts for automation
# group=kde-applications
pkgname=arianna
pkgver=23.08.4
pkgrel=0
pkgdesc="EPub Reader for mobile devices"
url="https://invent.kde.org/graphics/arianna/"
# armhf blocked by extra-cmake-modules
# ppc64le, s390x and riscv64 blocked by qt5-qtwebengine
arch="all !armhf !ppc64le !s390x !riscv64"
license="(BSD-2-Clause OR BSD-3-Clause) AND (GPL-2.0-only OR GPL-3.0-only) AND (LGPL-2.0-or-later OR LGPL-2.1-or-later OR LGPL-3.0-or-later)"
depends="
	kirigami-addons
	kirigami2
	"
makedepends="
	extra-cmake-modules
	baloo5-dev
	karchive5-dev
	kconfig5-dev
	kcoreaddons5-dev
	kdbusaddons5-dev
	kfilemetadata5-dev
	ki18n5-dev
	kirigami-addons-dev
	kirigami2-dev
	kwindowsystem5-dev
	qqc2-desktop-style5-dev
	qt5-qtbase-dev
	qt5-qtquickcontrols2-dev
	qt5-qtsvg-dev
	qt5-qtwebengine-dev
	qt5-qtwebsockets-dev
	qt5-qtxmlpatterns-dev
	samurai
	"
subpackages="$pkgname-lang"
_repo_url="https://invent.kde.org/graphics/arianna.git"
source="https://download.kde.org/stable/release-service/$pkgver/src/arianna-$pkgver.tar.xz"
options="!check" # No tests

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=MinSizeRel \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
14a7326585543e7e9f09fd581ca9630b5f1eaf9b01f854db968aa7d30b41f69b9552438fed8fe44eaeff5eb7bd7fe85a73cdbd8354d847a99087c307b7e69c14  arianna-23.08.4.tar.xz
"
